package com.ly.mp.cmc.common.exception;

import lombok.Getter;

/**
 * @Author: ly-songpengfei
 * @Date: 2025/8/3 21:28
 * @Description: 异常信息枚举类
 * @Version: 1.0
 */
@Getter
public enum ExceptionEnum {

    // 系统异常相关信息
    SUCCESS("200", "成功"),
    SYSTEM_EXCEPTION("500", "系统异常"),

    // 业务异常相关信息
    PASSWORD_EXCEPTION("601", "密码输入错误"),
    USERNAME_EXCEPTION("602", "用户名输入错误");

    // 异常编码
    private String code;
    // 异常信息
    private String message;

    private ExceptionEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

}
